/**
 * 
 */
package pl.kaczanowscy.tomek.ipdl.strategy;

import pl.kaczanowscy.tomek.ipdl.RoundResult;
import pl.kaczanowscy.tomek.ipdl.Strategy;
import pl.kaczanowscy.tomek.ipdl.enums.Move;

/**
 * ALLD - always defect.
 * 
 * @author Tomek Kaczanowski
 * 
 */
public final class ALLD implements Strategy {

	/**
	 * Always returns {@link Move#DEFECTION}.
	 * 
	 * @see pl.kaczanowscy.tomek.ipdl.Strategy#getMove()
	 */
	@Override
	public Move getMove() {
		return Move.DEFECTION;
	}

	/**
	 * ALLD does not care about the results of the last round.
	 * 
	 * @see pl.kaczanowscy.tomek.ipdl.RoundListener#roundEnded(pl.kaczanowscy.tomek.ipdl.RoundResult)
	 */
	@Override
	public void roundEnded(RoundResult result) {
		// ALLD doesn't care
	}

	@Override
	public String toString() {
		return "ALLD";
	}
	
	
}
